<!--
    /**
     * @author RaoShuang
     * @emil 991207823@qq.com
     * @date 2020/11/23 21:03
     */
-->
<!DOCTYPE html>
<html>
	<head>
		<meta charset="utf-8" />
		<title>v-on:click</title>
		<script src="js/vuejs-2.5.16.js"></script>
	</head>
	<body>
		<div id="app">
			{{message}}  
			<button v-on:click="fun1('goot')">vue的onclick-点击改变</button>
		</div>
	</body>
	<script>
		//view model
		new Vue({
            el: "#app",
            data:{
                message:"Hello Wue! So Easy.",
            },
            methods:{
                fun1:function (msg) {
                    this.message=msg;
                }
            }
        });
	</script>
</html> 